package version1_0;

/**
 * @program:IntelliJ IDEA
 * @Description:人类
 * @author:Mr.CheCheHuiBujianO
 * @data: 2022/7/12 12:42
 */
public class People {
    private String peopleName;//人名
    private String peopleId;//人的游戏id
    private String peopleGesture;//人出的手势

    public String getPeopleName() {
        return peopleName;
    }

    public void setPeopleName(String peopleName) {
        this.peopleName = peopleName;
    }

    public String getPeopleId() {
        setPeopleId();
        return peopleId;
    }

    public void setPeopleId() {
        Integer id = (int) (Math.random()*100000);
        String peopleId = id.toString();
        this.peopleId = peopleId;
    }

    public String getPeopleGesture() {
        return peopleGesture;
    }

    public void setPeopleGesture(String peopleGesture) {
        this.peopleGesture = peopleGesture;
    }
}
